#define _CRT_SECURE_NO_WARNINGS 1
#include <stdio.h>
#include <stdlib.h>
#include <time.h>

int * getRandom()
{
	static int r[10];
	int i;
	
	srand( (unsigned)time(NULL)  );
	
	for ( i = 0; i < 100; ++i)
	{
		r[i] = rand();
		printf("r[%d] = %d \n", i, r[i]);
	}
	return r;
}

int main()
{
	int *p;
	int i;

	p = getRandom();

	for ( i = 0; i < 100; i++)
	{
		printf("*(p+%d) : %d \n",i,*(p+i));
	}
	return 0;
}